﻿using System;
using System.Collections.Generic;
using System.Data.Objects.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.Order;
using ZBJF.Warranty.Model.ViewModel.Product;

namespace ZBJF.Warranty.BLL
{
    public partial class InsuranceOrderCheckLogService
    {
        public InsuranceOrderCheckLog LoadByID(long id)
        {
            return LoadEntities(a => a.ID == id).FirstOrDefault();
        }

        public IQueryable<InsuranceOrderCheckLog> LoadByInsuranceOrderCheckLogId(int insuranceOrderId)
        {
            return LoadEntities(a => a.InsuranceOrderId == insuranceOrderId);
        }
    }
}
